/*
 * @描述: 标签组组件
 * @Author: /songzi
 * @Date: 2019-07-23 16:15:02
 * @Last Modified by: songzi
 * @Last Modified time: 2019-07-23 16:15:34
 */

import React from 'react';
import { Tag } from 'antd';

const MapTags = ({ tagList = [], color }) =>
  tagList.map(item => (
    <Tag key={item} color={color}>
      {item}
    </Tag>
  ));
export default MapTags;
